CSharpTest.Net
IsEmpty Property
See Also  Example Send Feedback Download Help File
CSharpTest.Net.Library Assembly > CSharpTest.Net.Collections Namespace > LListNode.LList<TNode> Class : IsEmpty Property

Glossary Item Box

Returns true if the list is empty

Syntax

Visual Basic (Declaration) 
Public ReadOnly Property IsEmpty As Boolean
C# 
public bool IsEmpty {get;}

Example

Library/Library.Test/TestLinkList.cs

C#Copy Code
LListNode<string>.LList list = new LListNode<string>.LList();
Assert.IsTrue(list.IsEmpty);
list.AddLast("B");
Assert.IsFalse(list.IsEmpty);
list.AddFirst("A");
Assert.AreEqual("A", list.First.Value);
Assert.AreEqual("B", list.Last.Value);
VB.NETCopy Code
Dim list As New LListNode(Of String).LList()
Assert.IsTrue(list.IsEmpty)
list.AddLast("B")
Assert.IsFalse(list.IsEmpty)
list.AddFirst("A")
Assert.AreEqual("A", list.First.Value)
Assert.AreEqual("B", list.Last.Value)

Requirements

Target Platforms: Windows XP, Windows Server 2003, Windows Vista, Windows Server 2008, Windows 7

See Also

Generated with Document! X 2011 by Innovasys